home *** CD-ROM | disk | FTP | other *** search
- /**
- ** code for setting up an independent context,
- ** borrowed from YAP
- **/
-
- defineps GetFocus(|float *llx; float *lly, *urx, *ury, ctm[6]; int *win)
- gsave clippath pathbbox ury urx lly llx grestore
- matrix currentmatrix {ctm} forall
- currentwindow win
- endps
-
- defineps ReFocus(int win; float ctm[6]; float llx, lly, urx, ury)
- win windowdeviceround % focus on this window
- ctm setmatrix % set up the matrix
- newpath % reestablish the clip path
- llx lly moveto
- llx ury lineto
- urx ury lineto
- urx lly lineto
- closepath clip
- newpath
- endps
-